const mongoose = require('mongoose')

mongoose.connect('mongodb://education:kevin1016@152.136.153.169:27017/education')

const conn = mongoose.connection;


conn.on('error', function(error){
    console.log("连接失败");
    console.log(error);
})

conn.on('open', function(error){
    console.log("连接成功");
})

module.exports = mongoose;




